{% extends 'web_base.html' %}
{% load staticfiles %}
{% block css_js %}
    <link rel="stylesheet" href={% static "css/order.css" %}>
{% endblock %}
{% block title %}
    评价页
{% endblock %}

{% block web_body %}
    <div style="width: 300px; margin: 0 auto;">

        <form action="{% url 'orders:commentpost' %}" method="post">
            <input type="hidden" name="total" value="{{ order_goods|length }}">
            {% csrf_token %}
            {% for order_good in order_goods %}
                {{ order_good.goodes.name }}<br/>
                <input type="hidden" name="goods{{ forloop.counter }}" value="{{ order_good.goodes.id }}">
                <textarea name="comment{{ forloop.counter }}" id="" cols="30" rows="10"
                          style="border:1px solid black"></textarea><br>
            {% endfor %}
            <input type="hidden" name="order_id" value="{{ order_id }}">
            <input type="submit" class="btn" value="提交">
        </form>

    </div>
{% endblock %}
{% block end_js %}
    <script>


    </script>
{% endblock %}